Repository navigation
Agent Flow: a live source hides the transcript of its own agent session (#326) - #430
Merged
Merged
Conversation
…on (#326) Core part of the IDE fix: an IDE chat running Claude Code over ACP was listed twice in the scene's session picker, as the live chat and as the transcript Claude Code writes under the same session id. A live source can now name its agent session id, and the listing leaves out the transcript with that id.
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Found in Adrián's manual test of #326 (Watch in XR from an IDE chat): the scene's Agent sessions list showed the same chat twice, once as the live IDE chat ("Tests fallidos") and once as a Claude Code transcript titled by its first prompt.
Cause: an IDE chat runs Claude Code over ACP (
claude-agent-acp), which starts the SDK session with the ACP session id, so Claude Code writes~/.claude/projects/<folder>/<acp session id>.jsonl. Transcript discovery picked that file up as a second source.Fix:
AgentTraceSourcegets an optionalagentSessionId();PushAgentTraceSourcestores it (setAgentSessionId).listAgentTraceSourcesleaves out a transcript whose id names a live source's agent session (claude-code:<id>,codex:rollout-...-<id>), via the exportedcoveredByLive.This is the core part; the IDE feed that sets the id is in the
idePR #429.Tests
agentFlowCore.test.cjs: a live chat hides the transcript with its agent session id, and the transcript comes back once the chat goes away.npm test: 1429 + 645 tests, 0 failures.Generated by Claude Code